package org.naxx.security.naxxlet;

import org.naxx.security.model.request.Request;
import org.naxx.security.naxxlet.model.XPolicy;

public interface XPolicyRepository {

	/**
	 * Evaluate client request against all 
	 * policies currently loaded.<p>
	 * 
	 * TODO request definitions etc
	 */
	public void evaluate(Request request);
	
	/**
	 * Adds new policy to set of policies managed
	 * by this manager. This occurs after naxxlet
	 * has been successfully deployed onto <code>NaxxServerManager</code>.
	 */
	public void addXPolicy(XPolicy xPolicy);
}
